package com.jshare.entity;
// default package

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Article entity. @author MyEclipse Persistence Tools
 */

public class Article  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Member member;
     private ArCategory arCategory;
     private String title;
     private String content;
     private Timestamp postdate;
     private String tags;
     private Set arComments = new HashSet(0);


    // Constructors

    /** default constructor */
    public Article() {
    }

	/** minimal constructor */
    public Article(Member member, ArCategory arCategory, String title, String content, Timestamp postdate, String tags) {
        this.member = member;
        this.arCategory = arCategory;
        this.title = title;
        this.content = content;
        this.postdate = postdate;
        this.tags = tags;
    }
    
    /** full constructor */
    public Article(Member member, ArCategory arCategory, String title, String content, Timestamp postdate, String tags, Set arComments) {
        this.member = member;
        this.arCategory = arCategory;
        this.title = title;
        this.content = content;
        this.postdate = postdate;
        this.tags = tags;
        this.arComments = arComments;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Member getMember() {
        return this.member;
    }
    
    public void setMember(Member member) {
        this.member = member;
    }

    public ArCategory getArCategory() {
        return this.arCategory;
    }
    
    public void setArCategory(ArCategory arCategory) {
        this.arCategory = arCategory;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getPostdate() {
        return this.postdate;
    }
    
    public void setPostdate(Timestamp postdate) {
        this.postdate = postdate;
    }

    public String getTags() {
        return this.tags;
    }
    
    public void setTags(String tags) {
        this.tags = tags;
    }

    public Set getArComments() {
        return this.arComments;
    }
    
    public void setArComments(Set arComments) {
        this.arComments = arComments;
    }
   








}